<?php
/**
 *
 * PHP 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       app.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
 */

?>
<!DOCTYPE html>
<html>
<head>
	<?php echo $this->html->charset('utf-8'); ?>
	<title>
		<?php echo $wchartDescription ?>:
		<?php echo $title_for_layout; ?>
	</title>
	<?php
		echo $this->Html->meta('icon');

		// echo $this->Html->css('cake.generic');
		echo $this->Html->css('wchart');
		echo $this->Html->css('jquery.jqplot');
		echo $this->Html->css('bootstrap.min');
		echo $this->Html->css('bootstrap-responsive');
		echo $this->Html->css('famfamfam-flags');
		// css della libreria humane.js
        echo $this->Html->css('theme/original');

        echo $this->Html->script('jquery-1.9.1');
        // echo $this->Html->script('jquery-1.10.1');
        echo $this->Html->script('jquery-ui-1.10.3.custom.min');
        echo $this->Html->script('jquery.ui.touch-punch.min');
        echo $this->Html->script('jqplot/jquery.jqplot.min');
        echo $this->Html->script('jqplot/plugins/jqplot.pieRenderer.min');
		// TODO se internet explorer 9 inserisco il seguente script
        // echo $this->Html->script('jqplot/excanvas.min');
        echo $this->Html->script('Chart.min');
        echo $this->Html->script('load');
        echo $this->Html->script('bootstrap.min');
        echo $this->Html->script('bootstrap-switch');
        echo $this->Html->script('humane.min');
		// script proprietario
        echo $this->Html->script('utility');

		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
	?>
</head>
<body>
	<div id="container">
		<div id="header">
			<?php echo $this->element('top_menu'); ?>
		</div>
		<div id="content">

			<?php echo $this->Session->flash(); ?>

			<?php echo $this->fetch('content'); ?>
		</div>
		<div id="footer">

		</div>
	</div>

	<?php echo $this->element('message'); ?>

<!-- 	<?php echo $this->element('sql_dump'); ?> -->
</body>
</html>
